package com.group12.liuxinpeng.department.service.impl;

import com.group12.liuxinpeng.department.repository.DepartmentDao;
import com.group12.liuxinpeng.department.service.DepartmentService;
import com.group12.liuxinpeng.organ.repository.OrganDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("DepartmentService")
public class DepartmentServiceImpl implements DepartmentService {

    @Resource
    private DepartmentDao departmentDao;

    @Override
    public void addDepartment(String depUuid, String belongCenter, String branchName, String organUuid) {
        departmentDao.addDepartment(depUuid,belongCenter,branchName,organUuid);
    }

    @Override
    public void delDepartment(String depUuid) {
        departmentDao.delDepartment(depUuid);
    }
}
